package com.ziyun.erp.modules.supp.service.impl;

import org.springframework.stereotype.Service;

import java.util.List;
import java.util.Map;
import com.baomidou.mybatisplus.mapper.EntityWrapper;
import com.baomidou.mybatisplus.plugins.Page;
import com.baomidou.mybatisplus.service.impl.ServiceImpl;
import io.renren.common.utils.PageUtils;
import io.renren.common.utils.Query;

import com.ziyun.erp.modules.supp.dao.PopSysUserDao;
import com.ziyun.erp.modules.supp.entity.PopSysUserEntity;
import com.ziyun.erp.modules.supp.service.PopSysUserService;


@Service("popSysUserService")
public class PopSysUserServiceImpl extends ServiceImpl<PopSysUserDao, PopSysUserEntity> implements PopSysUserService {

    @Override
    public PageUtils queryPage(Map<String, Object> params) {
        Page<PopSysUserEntity> page = this.selectPage(
                new Query<PopSysUserEntity>(params).getPage(),
                new EntityWrapper<PopSysUserEntity>()
        );

        return new PageUtils(page);
    }

    @Override
    public List<PopSysUserEntity> getUserList(Map<String, Object> params) {
        return this.baseMapper.getUserList(params);
    }

}
